﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;

namespace lcmyjobs.Web.Controls
{
    public partial class ManUserHead : System.Web.UI.UserControl
    {
        lcmyjobs.BLL.adverts ad = new BLL.adverts();
        DataSet ds;
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                ds = ad.GetAdvnid(29);
                if (ds.Tables[0].Rows.Count == 1)
                {
                    
                    
                    HyperLink1.ImageUrl = "~" + ds.Tables[0].Rows[0][0].ToString();
                    HyperLink1.NavigateUrl = ds.Tables[0].Rows[0][1].ToString();
                        

                }
            }

        }
    }
}